package com.orientation.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @PROJECT_NAME: orientationSystem
 * @PACKAGE_NAME: com.test.enums
 * @NAME: ExceStudentEnum
 * @author:xuandian
 * @DATE: 2021/10/30 15:12
 * @description
 */
@AllArgsConstructor
@Getter
public enum ExcelStudentEnum {

    STUDENT_NAME(1, "姓名"),
    IDCARD_NO(2, "身份证号"),
    GENDER(3, "性别"),
    COLLEGE_NAME(4, "学院"),
    MAJOR_NAME(5, "专业"),
    NATION(6, "民族"),
    GRADE(7, "年级"),
    DOMICILE_PLACE_PROVINCE(8,"籍贯省")
    ;

    public static boolean isInclude(String value) {
        boolean include = true;
        for (ExcelStudentEnum e : ExcelStudentEnum.values()) {
            if (e.desc.equals(value)) {
                include = false;
                break;
            }
        }
        return include;
    }

    private final Integer type;

    private final String desc;
}